import Vue from 'vue';
import VueRouter from '../VueRouter';
// import VueRouter from 'vue-router';
import Index from '../page/Index.vue';
import Detail from '../page/Detail.vue'
Vue.use(VueRouter);
const routes=[{
    path:'/index',
    name:'index',
    component:Index
},{
    path:'/detail',
    name:'detail',
    component:Detail
}]
const router=new VueRouter({
    routes,
    mode:'hash'
})
export default router;